-
-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
breaking: Remove sinon.defaultConfig and related modules #2565
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2565 +/- ##
==========================================
- Coverage 96.05% 96.05% -0.01%
==========================================
Files 41 40 -1
Lines 1928 1927 -1
==========================================
- Hits 1852 1851 -1
Misses 76 76
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
default-config and get-config are leftovers from when Sinon shipped with sinon.test (now the independent NPM module 'sinon-test'). These serve no purpose internally, and really have no purpose but to help sinon-test create a base default. If needed, these can be copied into the sinon-test project. No projects should depend on these (my assumption), but since it is a change of the API we mark it as a breaking change fixes sinonjs#2561
It seemed like the the 'injectInto' option would expose most props by default. This was not the case. That was formerly hidden by using the getConfig call that added props that were never used in the actual implementation. Added another test to make this more explicit. Will add docs on this.
This was added in Sinon 0.6 but has never been documented
9911e05
to
94ee6d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice PR! 🥇
default-config
andget-config
are leftovers from when Sinon shipped with sinon.test (now the independent NPM module'sinon-test').
These serve no purpose internally, and really have no purpose but to help sinon-test create a base default. If needed, these can be copied into the sinon-test project. No projects should depend on these (my assumption), but since it is a change of the API we mark it as a breaking change
When working with these I found out that some things had never been documented, so added docs for that.
fixes #2561